package com.vm.osm.business.dto.rsp.logic_equ;

import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 逻辑设备分页行
 *
 * @author Xuerong Xue
 */
@Data
public class LogicEquRow implements Serializable {
    @ApiModelProperty("设备Id")
    private String id;
    @ApiModelProperty("设备编码")
    private String equ_code;
    @ApiModelProperty("设备类型（1：通用设备类型，2：专业设备类型）")
    private Byte equ_type;
    @ApiModelProperty("设备类型Id")
    private String equ_type_id;
    @ApiModelProperty("设备类型名称")
    private String equ_type_name;
    @ApiModelProperty("品牌")
    private String brand;
    @ApiModelProperty("型号")
    private String model;
    @ApiModelProperty("归属类型（1：自有设备，2：客户）")
    private Byte belong_type;
    @ApiModelProperty("设备归属")
    private String belonger_name;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("资源编码")
    private String resource_code;
    @ApiModelProperty("资源名称")
    private String resource_name;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("id", id)
                .add("equ_code", equ_code)
                .add("equ_type", equ_type)
                .add("equ_type_id", equ_type_id)
                .add("equ_type_name", equ_type_name)
                .add("brand", brand)
                .add("model", model)
                .add("belong_type", belong_type)
                .add("belonger_name", belonger_name)
                .add("address", address)
                .add("resource_code", resource_code)
                .add("resource_name", resource_name)
                .toString();
    }
}
